package net.service.Impl;

import net.mapper.LinksMapper;
import net.pojo.Links;
import net.service.LinksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class LinksServiceImpl implements LinksService {
    @Autowired
    LinksMapper linksMapper;

    @Override
    public List<Links> findAll() {
        return linksMapper.findAll();
    }

    @Override
    public int insertLinks(Links links) {
        return linksMapper.insertLinks(links);
    }
}
